package com.tjhk.netty.mapping.handler;

import com.tjhk.netty.model.Message;
import io.netty.channel.Channel;

import java.lang.reflect.Method;

public class SimpleHandler extends Handler{
    public SimpleHandler(Object targetObject, Method targetMethod, String desc) {
        super(targetObject, targetMethod, desc);
    }

    @Override
    public <T extends Message> T invoke(T request, Channel channel) throws Exception {
        return super.invoke(request, channel);
    }

    @Override
    public <T extends Message> T invoke(T request) throws Exception {
        return super.invoke(request);
    }
}
